home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Tools / Mac / FWBuildCW < prev    next >
Encoding:
Text File  |  1996-08-16  |  660 b   |  25 lines  |  [TEXT/MPS ]

  1. SET Exit 1
  2.  
  3. execute FWLocateCW
  4.  
  5. if "{FWCWCppPPCName}" == ""
  6.     Alert "Can't find the CodeWarrior IDE"
  7.     exit
  8. end
  9.  
  10. ##### Launch IDE (if not using toolserver)
  11. if ¬ {FWUseToolServer} 
  12.     "{FWCWCppPPC}" -background
  13. End
  14.  
  15. SendAE -e miscactv -t "{FWCWCppPPCName}"
  16. SendAE -e aevtodoc -t "{FWCWCppPPCName}" -----alis """{1}""" -timeout 1152000
  17.  
  18. # Do the compile.  Capture any error message in AEResult.  Exit 1 if there
  19. # was an error message.  (Note how errstr is set: need that "x" when AEResult
  20. # is the empty string).
  21. SendAE -e MMPRMake -t "{FWCWCppPPCName}" -timeout 1152000 ∑ "{ODFDev}AEResult"
  22. Set errstr "x`Catenate "{ODFDev}AEResult"`"
  23. Exit 1 If "{errstr}" != 'x'
  24.  
  25.